import request from '@/utils/request';
import {getCookie} from "@/utils/authority";

export async function query() {
  return request('/api/users');
}
export async function queryCurrent() {
  // return request('/api/currentUser');
  return request('/api/cUsers', {
    method: 'POST',
    headers: {
      'login-token': getCookie('tks')
    },
  });
}
export async function queryNotices() {
  return request('/api/notices');
}
